<?php
include_once "../model/resume.php";
include_once "main.php";
// 
if(isset($_GET["id"]) && $_SESSION["username"] == "admin"){
    // return readResume($_POST["id"]);
    // var_dump(readResume($_POST["id"]));
    $r =readResume($_GET["id"]);
    // echo $r["name"];
    echo json_encode($r,JSON_UNESCAPED_UNICODE );
}else{
    echo 0;
}